package com.echo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 考试记录表
 * </p>
 *
 * @author echo
 * @since 2024-10-31
 */
@Data
@TableName("exam_record")
public class ExamRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 考试记录表的主键
     */
    @TableId(value = "exam_record_id", type = IdType.AUTO)
    private String examRecordId;
    @TableField("que_correct_user_ans")
    private String queCorrectUserAns;
    /**
     * 考试参与者的用户id
     */
    private String examJoinerId;
    @TableField("ana_que")
    private String anaQue;
    private String examType;
    /**
     * 参加考试的日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date examJoinDate;
    private Data creatTime;
    /**
     * 完成考试所用的时间,单位分钟
     */
    private Integer examTimeCost;

    /**
     * 参与考试的实际得分
     */
    private Integer examJoinScore;

    /**
     * 考试结果的等级
     */
    private Integer examResultLevel;

    private String answerOptionIds;

    private String examId;
    //关联的课程id
    private Integer courseId;

    @Override
    public String toString() {
        return "ExamRecord{" +
            "examRecordId=" + examRecordId +
            ", examJoinerId=" + examJoinerId +
            ", examJoinDate=" + examJoinDate +
            ", examTimeCost=" + examTimeCost +
            ", examJoinScore=" + examJoinScore +
            ", examResultLevel=" + examResultLevel +
            ", answerOptionIds=" + answerOptionIds +
            ", examId=" + examId +
        "}";
    }
}
